package com.lzg.designdrinciples.openclose;

/**
 * @Author lizhigang Date: 2019/9/8 20:41
 * @description:
 */
public class JavaDiscountCourse extends JavaCourse {
    public JavaDiscountCourse(Integer id, String name, Double price) {
        super(id, name, price);
    }

    public Double getOriginPrice(){

        return super.getPrice();

    }
    //尽量不要改造父类方法
    @Override
    public double getPrice(){

        return super.getPrice()*0.61;

    }
}
